import request from '../request'

// 查询商品数据
export const queryGoods = (params) => request({ url: '/home/goods', params })

// 查询轮播
export const queryBanner = () => request({ url: '/home/banner' })

//查询热门信息
export const queryRecommend = () => request({ url: '/home/recommend' })

// 根据商品id查询
export const queryGoodsById = (id) => request({ url: `/home/goods/${id}` })
